package ypmits.components.modal {
	import ypmits.components.ComponentSkin;

	/**
	 * @author Dave Lenz
	 */
	public class Warning extends Modal implements IModal {
		
		private static var _instance : Warning;

		
		public static function get instance() : Warning {
			if( !_instance ) _instance = new Warning( new SingletonEnforcer( ) );
			return _instance;
		}
		
		
		public function Warning ( enforcer : SingletonEnforcer ) {
			if (!enforcer) trace( "ERROR! Class must be instantiated using the getInstance method" );
			
			var skin : ComponentSkin = new ComponentSkin();
			skin.color = 0x000000;
			skin.alpha = 1;
			skin.backgroundcolor = 0xFF0000;
			skin.backgroundalpha = .75;
			skin.embedFonts = false;
			skin.textcolor = 0xFFFFFF;
			skin.width = 350;
			skin.height = 350;
			
			super( skin );
		}
		
		
		override public function show() : void {
			alpha = 1;
			visible = true;
		}

		
		
		override public function hide() : void {
			alpha = 0;
			visible = false;
		}

		
		
		public function set head( value : String ) : void 
		{
		}
		
		
		public function set body( value : String ) : void 
		{
		}
	}
}

class SingletonEnforcer {}